{% extends "kit" %}

{% block main %}
<div>
    <h2 class="{% if tests.getstatus %}pass{% else %}fail{% endif %}">
        {{ kit.getid }} - Tests unitaires</h2>

    <p class="tests_pass">{{ tests.getpasscount }} tests réussis</p>

    <p class="tests_fail">{{ tests.getfailcount }} tests en échecs.</p>

    <p class="tests_exception">{{ tests.getexceptioncount }} exceptions</p>

    {% if tests.messages %}
    <h3>Messages</h3>
    <ol class="messages">{% for msg in tests.messages %}
        {% comment %}<li class="{{ msg.type }}">{{ msg.class }}::{{ msg.method }}</dt>{% endcomment %}
        <li class="{{ msg.type }}">{{ msg.text }}</dd>{% endfor %}
    </ol>
    {% endif %}

    {% comment %}<pre>{{ tests|dump }}</pre>{% endcomment %}
</div>
{% endblock %}
